package com.lthlearn.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: 2942733239@qq.com
 * @date: 2024/11/7 15:23
 * @description: com.lthlearn.pojo
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Collect {

    private Integer favoriteId;

    private Integer locationId;

    private Integer userId;

    // 一个用户可以收藏多个景点
    private List<Travel> travels;

    // 一个景点可以由多个用户收藏
    private List<User> users;

}
